<link rel="stylesheet" href="<?= $this->baseUrl() ?>/css/backend.admin.index.css" />
<script type="text/javascript" src="<?=$this->baseUrl()?>/js/backend.delete.js"></script>
<?php if(count($this->admins)>0): ?>
<div id="view-content">
    <div id="table-header">
        <div class="name">Name</div>
        <div class="email">Email</div>
        <div class="contact">Contact No.</div>
        <div class="act">Action</div>
    </div>
    <div id="table-content">
        <?php foreach ($this->admins as $admin): ?>
            <div class="table-row">
                <div class="name"><?= $admin['full_name'] ?></div>
                <div class="email"><?= $admin['email'] ?></div>
                <div class="contact"><?= $admin['contact'] ?></div>
                <div class="act">
                    <a class="nyroModal" href="<?=$this->baseUrl()?>/backend/admin/edit/id/<?=$admin['admin_id']?>"><img src="<?= $this->baseUrl() ?>/images/icons/pencil.png" alt="edit" /></a>
                    <a class="link-delete" href="#delete" aid="<?=$admin['admin_id']?>"><img src="<?= $this->baseUrl() ?>/images/icons/cross.png" alt="delete" /></a>
                </div>
            </div>
        <?php endforeach; ?>
    </div> <!-- end of table-content -->
    <div id="hiddenform">
        <form name="frmAct" id="frmAct" action="" method="post">
            <?=$this->formHidden("id","")?>
            <?=$this->formHidden("act","")?>
        </form>
    </div>
</div>
<?php else: ?>
<div style="margin-top: 20px;"><i>No record found</i></div>
<?php endif; ?>